body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #000;
}

canvas {
    border: 2px solid #fff;
}

#score {
    font-size: 24px;
    margin-top: 10px;
}


#homePage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #000;
    color: #fff;
}

#startGameButton {
    font-size: 24px;
    padding: 10px 20px;
    cursor: pointer;
}

#gameCanvas, #score, #gameOver {
    display: none; /* 默认隐藏游戏内容 */
}

#gameOver {
    font-size: 48px;
    margin-top: 20px;
}

/* 爆炸效果的CSS动画 */
@keyframes explosion {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    50% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.explosion {
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: #ff0000;
    border-radius: 50%;
    animation: explosion 0.5s ease-in-out forwards;
}

#startButton, #gameOver {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

#startButton {
    font-size: 24px;
    padding: 10px 20px;
    cursor: pointer;
    top: 60%; /* 稍微靠下一些，避免与 GAME OVER 重叠 */
}
